package com.hqq.mediator;

/**
 * App
 * Created by heqianqian on 2017/6/22.
 */
public class App {

    public static void main(String[] args) {
        Party party = new PartyImpl();
        Wizard wizard = new Wizard();
        Hunter hunter = new Hunter();
        Rogue rogue = new Rogue();
        Hobbit hobbit = new Hobbit();

        party.addMember(wizard);
        party.addMember(hunter);
        party.addMember(rogue);
        party.addMember(hobbit);

        wizard.act(Action.ENEMY);
        hunter.act(Action.HUNT);
        rogue.act(Action.GOLD);
        hobbit.act(Action.TALE);
    }

}
